import request from '@/utils/request'

export default {
    //员工列表
    getStaffList(current,limit,searchObj){
        return request({
            url: `/admin/hosp/staff/findPageStaff/${current}/${limit}`,
            method: 'post',
            data: searchObj //使用json
          })
    },

    //删除预约
deleteStaff(id) {
    return request ({
      url: `/admin/hosp/staff/${id}`,
      method: 'delete'
    })
  },

  //批量删除
  batchRemoveStaff(idList) {
    return request ({
      url: `/admin/hosp/staff/batchRemove`,
      method: 'delete',
      data: idList
    })
  },
 
//预约保存
saveStaff(staff) {
  return request ({
    url: `/admin/hosp/staff/saveStaff`,
    method: 'post',
    data: staff
  })
},
//员工id查询
getStaff(id) {
  return request ({
    url: `/admin/hosp/staff/getStaff/${id}`,
    method: 'get'
  })
},
//修改员工信息
updateStaff(staff) {
  return request ({
    url: `/admin/hosp/staff/updateStaff`,
    method: 'post',
    data: staff
  })
}

}
